﻿<%@ Page PathInChannel="index{Ext}" %>
<!doctype html>
<html>
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Skin" Mark="System" Object="Skin" Operation="Get(Request.QueryString['Skin'])" />
<meta charset="utf-8">
<title>可视编辑</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css"></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css">
<script>
var _page = "index";
var _lang = "<%=PageLang%>";
var _skin = "<%=Request.QueryString["Skin"]%>";
var _skinName = "<%=Skin[Name]%>";
var _roldID = "<%=User["RoleID"]%>";
var _id = "<%=Request.QueryString["ID"]%>";/*不空，表示编辑Widget*/
var _config;
var _widget;

<%If Request.QueryString["Debug"] == "1"%>
	var _debug = true;
<%Else%>
	var _debug = false;
<%EndIf%>

var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_get_skin = "正在获取模板信息...";
var _lang_get_widget = "正在获取微件信息...";
var _lang_config_file_not_exist = "配置文件未找到！";
var _lang_object_empty = "请选择对象！";
var _lang_var_empty = "请给变量赋值！";
var _lang_select = "-- 快捷菜单 --";
var _lang_property = " -- 属性 -- ";
var _lang_global_var = " -- 全局变量 -- ";
var _lang_global_function = " -- 全局函数 -- ";
</script>
</head>
<body>
<iframe src="preview.html" style="display:none"></iframe>
<div class="Wrap">
	<table class="Block1">
		<thead>
			<tr>
				<th>当前模板：</th>
				<td>
					<select name="Skin"></select>
				</td>
				<th>当前微件：</th>
				<td>
					<select name="Widget"></select>
				</td>
			</tr>
			<tr>
				<th>插入位置：</th>
				<td>
					<select name="Insert">
						<option value="Before">前面</option>
						<option value="After">后面</option>
					</select>
				</td>
				<th>显示条数：</th>
				<td><input name="PageSize" value="10" size="4"></td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="4">
					<h1><a href="" class="Selected"><i>预览</i></a><a href=""><i>数据</i></a></h1>
					<h2 style="display:none"><input type="radio" name="Preview" id="Result" checked="checked"><label for="Result">结果</label><input type="radio" name="Preview" id="Code"><label for="Code">代码</label></h2>
					<h2 style="display:none"><input type="radio" name="Data" id="Auto" checked="checked"><label for="Auto">自动</label><input type="radio" name="Data" id="Hand"><label for="Hand">手动</label></h2>
					<div id="PreviewResult" class="Preview"><iframe></iframe></div>
					<div id="PreviewCode" class="Preview" style="display:none"></div>
					<div id="PreviewAuto" class="Preview" style="display:none">
						<table id="SourceTable">
							<caption>来源设置</caption>
							<tr>
								<th>数据源：</th>
								<td>
									<select name="Instance">
										<option value="">-- 未指定 --</option>
									</select>
								</td>
								<td>
									<select name="Object">
										<option value="">-- 未指定 --</option>
									</select>
								</td>
							</tr>
							<tr id="Condition">
								<th>条件：</th>
								<td colspan="2"><input type="text" name="Condition" class="Width1"><select><option value="">-- 快捷菜单 --</option></select></td>
							</tr>
							<tr id="Sort">
								<th>排序：</th>
								<td colspan="2"><input type="text" name="Sort" class="Width1"><select><option value="">-- 快捷菜单 --</option></select></td>
							</tr>
						</table>
						<table id="VarTable">
							<caption>变量设置</caption>
							<thead>
								<tr>
									<th>变量名</th>
									<th>变量值</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="2"><input type="button" value="生成并预览"></td>
								</tr>
							</tfoot>
							<tbody></tbody>
						</table>
					</div>
					<div id="PreviewHand" class="Preview" style="display:none"></div>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>json2.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
</body>
</html>
